#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
void freopen_()
{
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
}
signed main()
{
	freopen_();
	int n,q;
	cin >> n >> q;
	for(int i=1;i<=q;i++)
		cout << 0 << endl;
	return 0;
}

